Coding Python : The Ultimate Tool To Progress Your Python Programming From Good To Great While Making Coding In Scratch Look Easy (Python programming language) by Scratch Michael & Erik

Coding Python : The Ultimate Tool To Progress Your Python Programming From Good To Great While Making Coding In Scratch Look Easy (Python programming language) by Scratch Michael & Erik
Author: Scratch, Michael & Erik [Scratch, Michael and Erik]
Language: eng
Format: epub, pdf
Published: 2020-12-11

***Use Your Discretion Here And Write Your Code First***

Now, check your code against the correct code below:

A = [“ red”, “olive”, “cyan”, “lilac”, “mustard”]

print (A [-2])

OUTPUT – [“lilac”]

Exercise – Create a list “A” with string data values as “red, olive, cyan, lilac, mustard” and display the items ranging from the string on the second position to the end of the string.

***Use Your Discretion Here And Write Your Code First***

Now, check your code against the correct code below:

A = [“red”, “olive”, “cyan”, “lilac”, “mustard”]

print (A [2 : ])

OUTPUT – [ “cyan”, “lilac”, “mustard”]

Exercise – Create a list “A” with string data values as “red, olive, cyan, lilac, mustard” and replace the string “olive” with “teal.”